<div id="groups">
    <{includeq file="db:groups_header.html"}>
    <div class="group-main">
        <div style="padding: 5px 0; border-bottom: 1px solid #C8D2F0;"> 
            搜索结果: <{$search_total}> 关键字: <{foreachq item=item from=$search_keys}><span  style="padding: 2px ; color: #ff0000"><{$item}></span> &nbsp;<{/foreach}>
        </div>
        <div style="padding: 10px 5px;">
            <{if $groups_list}>
            <table width="100%">
                <{foreachq item=item from=$groups_list name="list"}>
            	<tr>
            		<td width="10%">
            			<div style="padding: 5px 0;"><a href="<{$groups_url}>/groups.php?gid=<{$item.group_id}>"><img src="<{$smarty.const._GROUPS_LOGO_URL}><{$item.group_logo}>" /></a></div>
            		</td>
            		<td valign="top">
                        <div style="line-height: 18px; padding: 5px 0">
                            <div>
                                <span style="float: right;"><{$item.operation}></span>
                                <a href="<{$groups_url}>/groups.php?gid=<{$item.group_id}>"><strong><{$item.group_name}></strong></a> <small>(<a href="<{$groups_url}>/groups.php?op=member&amp;gid=<{$item.group_id}>"><{$item.group_members}></a>)</small> &nbsp;<{$item.status}> 
                            </div>
                            <div><small>创建者: <a href="<{$smarty.const._GROUPS_USERINFO_URL}><{$item.uid}>"><{$item.createuser}></a> | <{$item.group_createtime}> | 主题数: <{$item.group_topics}> 回复数: <{$item.group_posts}></small> </div>
                            <div style="color: #999;"><{$item.group_description}></div>
                        </div>
            		</td>
            	</tr>
                <{/foreach}>
            </table>
            <{$pagenav}>
            <{else}>
                抱歉，没有搜索到任何群组.
            <{/if}>
        </div>
	</div>
	
	<div class="group-left">
		<div class="gp-block">
			<div class="gp-blocktitle"><{$smarty.const._GP_CATEGORY}></div>
			<div class="gp-blockcontent">
				<{assign var="n" value="0"}>
                <{assign var="v" value="2"}>
                <table width="100%" cellspacing="0">
                    <{foreachq item=item key=key from=$categories name="list"}>
                    <{if $n++%$v eq "0"}><tr><{/if}>
                        <td style="padding: 3px 0;"><a href="<{$groups_url}>/category.php?CatId=<{$key}>" <{if $key eq $cat_id }> style="background-color: #C8D2F0;"<{/if}> ><{$item}></a></td>
                        <{if $smarty.foreach.list.last AND $n%$v neq "0"}><td colspan="<{$v-$n%$v}>">&nbsp;</td><{/if}>
                    <{if $n%$v eq "0"}></tr><{/if}>
                    <{/foreach}>
                </table>
			</div>
		</div>
	</div>		
	
	<div class="clearfix"></div>
</div>